package com.crane.framework.service;

import org.camunda.bpm.engine.repository.ProcessDefinition;

import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.task.Task;
import org.springframework.core.io.Resource;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface IBpmnService {
  /**
   * 流程部署
   *
   * @param resourceName
   * @param name
   * @param resource
   * @throws IOException
   */
  void createDeploy(String resourceName, String name, Resource resource) throws IOException;

  /**
   * 流程启动
   *
   * @param processDefinitionId
   * @param businessKey
   * @param variables
   * @return
   */
  ProcessInstance startProcessInstanceAssignVariables(
      String processDefinitionId, String businessKey, Map<String, Object> variables);
}
